package com.sxjh.entity.result;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

@EqualsAndHashCode(callSuper = false)
@Data
public class UnloadLogWeighResult implements Serializable {

    @ApiModelProperty(value = "计划单no")
    private String plannedOrderNo;

    @ApiModelProperty(value = "派车单号")
    private String orderNo;

    @ApiModelProperty("印刷编号")
    private String printing;

    @ApiModelProperty("车号")
    private String vehNumber;

    @ApiModelProperty(value = "司机姓名")
    private String driverName;

    @ApiModelProperty(value = "承运公司")
    private String unitName;

    @ApiModelProperty("物料名称")
    private String materialName;

    @ApiModelProperty("装货点")
    private String loadName;

    @ApiModelProperty(value = "装货点所属工厂名称")
    private String locationUpFactoryName;

    @ApiModelProperty(value = "装货点所属车间名称")
    private String locationUpWorkshopName;


    @ApiModelProperty("卸货点")
    private String unloadName;

    @ApiModelProperty(value = "卸货点所属工厂名称")
    private String locationDownFactoryName;

    @ApiModelProperty(value = "卸货点所属车间名称")
    private String locationDownWorkshopName;

    @ApiModelProperty("装货地是否需要拍照1:否,-1:是")
    private Integer upPhotoFlag;

    @ApiModelProperty("卸货地是否需要拍照1:否,-1:是")
    private Integer downPhotoFlag;

    @ApiModelProperty("卸货地是否需要确认1:否,-1:是")
    private Integer downConfirmFlag;

    private List<WeighInfo> weighInfoList;

    private String rough;

    private Integer taskId;

    @EqualsAndHashCode(callSuper = false)
    @Data
    public static class WeighInfo implements Serializable {

        @ApiModelProperty("类型1:初磅,3:复磅")
        private Integer type;

        @ApiModelProperty("类型")
        private String typeName;

        @ApiModelProperty("皮重")
        private String tare;

        @ApiModelProperty("毛重")
        private String rough;

        @ApiModelProperty("净重")
        private String netWeight;

        @ApiModelProperty("称重时间")
        private LocalDateTime weighingTime;

        @ApiModelProperty("磅单编号")
        private String number;

    }

}
